<?php

session_start();

$charup = false;
$size = rand(18,18);
$angle = (rand(1,2)==1)?rand(0,0):rand(360-0,360);
$y = ($charup?(30/2)+rand(0,(30/5)):(30/1.5));
$x = 15;
$lafont = "fonts/MATURASC.TTF";
$captcha = imagecreatefromgif("image/bg.gif");
$colText = imagecolorallocate($captcha, 125, 125, 125);
$texto = $_SESSION[Usuario] ;
//$texto = "Jose David";

imagettftext($captcha, $size, $angle, $x, $y, $colText, $lafont, $texto);

header("Content-type: image/gif");
imagegif($captcha);
?>